﻿namespace TC
{
    public enum ExeStatus
    {
        Invalid = -1,  //初始状态
        Success = 0,   //成功
        Failure = 1,   //失败
        Running = 2,   //运行
        Stop = 3,      //终止
    }

    public class BTGraph : Graph
    {
        public BTNode root;

        public BTGraph(Context context, BTFlow dispatcher) : base(context, dispatcher)
        {
        }

        public void Start()
        {
            dispatcher.Call(root);
        }

        public void Stop()
        {
            dispatcher.Destroy();
        }
    }
}
